<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <title>带平滑效果的js返回顶部特效</title>
  <link href="css/top.css" type="text/css" rel="stylesheet" />
</head>

<body>
  <div id="content">
    <img src="images/qq.png" alt="qq网" />
  </div>
  <a href="#" onclick="gotoTop(); return false;" class="totop"></a>
  <script src="./js/1.js"></script>
</body>

</html>